package com.mzj.saas.mservice.report.controller;


import com.mzj.saas.commons.ResultBean;
import com.mzj.saas.mservice.report.service.ReportPaymentStatisticsService;
import com.mzj.saas.mservice.report.vo.ReportPaymentStatisticsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 缴费统计
 */
@Controller
@RequestMapping("/reportPaymentStatistics")
public class ReportPaymentStatisticsController {

    @Autowired
    private ReportPaymentStatisticsService reportPaymentStatisticsService;


    /**
     * 列表
     * @param accessToken 验证令牌
     * @param pageNumber 起始数据
     * @param pageSize 页面大小
     * @param vo
     * @return
     */
    @GetMapping("/pages")
    @ResponseBody
    public ResultBean<Map<String ,Object>> pages(@RequestHeader String accessToken,
                                                 @RequestParam(defaultValue = "0") Integer pageNumber,
                                                 @RequestParam(defaultValue = "10") Integer pageSize,
                                                 ReportPaymentStatisticsVO vo){

        return reportPaymentStatisticsService.pages(accessToken,pageNumber,pageSize,vo);

    }


}
